package cn.com.bdqn.service.impl;

import cn.com.bdqn.dao.SyMeterTypeDao;
import cn.com.bdqn.entity.SyMeterType;
import cn.com.bdqn.service.SyMeterTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyMeterTypeServiceImpl implements SyMeterTypeService {

    @Autowired
    private SyMeterTypeDao dao;

    @Override
    public List<SyMeterType> queryAll() {
        return dao.queryAll();
    }

    @Override
    public SyMeterType queryById(Long id) {
        return dao.queryById(id);
    }

    @Override
    public int delSyMeterType(Long id) {
        return dao.delSyMeterType(id);
    }

    @Override
    public int addSyMeterType(SyMeterType syMeterType) {
        return dao.addSyMeterType(syMeterType);
    }

    @Override
    public int updateSyMeterType(SyMeterType syMeterType) {
        return dao.updateSyMeterType(syMeterType);
    }
}
